//
//  XYStructTest.m
//  MemoryTest
//
//  Created by yao zhaofeng on 2020/6/30.
//  Copyright © 2020 YaoZhaofeng. All rights reserved.
//

#import "XYStructTest.h"
struct A
{
    int   a;
    char  b;
    double c;
    char  d;
};

struct B
{
    char  a;
    double b;
    char  c;
};
@implementation XYStructTest

+ (void)structTest {
    

    printf("int =%lu,char=%lu,double=%lu\n",sizeof(int),sizeof(char),sizeof(double));
    printf("structA=%lu  structB=%lu\n",sizeof(struct A),sizeof(struct B));
}

@end
